﻿@model IEnumerable<ASM_Group2.Models.Product>

@{
    ViewBag.Title = "Index";
}

<style>
    #imgsize {
        width: 250px;
        height: 250px;
    }
</style>
<h2>Index</h2>


<table>
    <tr>
        <td>Product Name</td>
        <td>Image</td>
        <td>Quantity</td>
        <td>Price</td>
      
       

    </tr>

    @foreach (var s in @ViewBag.ca)
    {
        <tr>
            
            <td>@s.Products.Name</td>
            <td><img id="imgsize" src="~/Images/@s.Products.Image" /></td>
            <td>@s.Quantity</td>
            <td>@s.Products.Price</td>
          
            



        </tr>
    }


   

</table>

<h3>@Html.ActionLink("Payments", "Payment")</h3>
<h2 style="color:red"> Total Price: @ViewBag.to</h2>